package com.core.website.service;


import cn.easyes.core.biz.PageInfo;
import com.core.website.entity.Approval;
import com.core.website.entity.Content;

import java.util.List;
import java.util.Map;

public interface ContentService {
    int add(Content content);
    int approval(Approval approval);
    int edit(Content content);
    int changeNo(Content content);
    int delete(List<String> ids);
    List<Content> queryAll(Content content);
    List<Content> queryFourData(Content content);
    List<Content> queryApprovalPage(Content content);
    PageInfo<Content> globalQueryAll(Content content);
    PageInfo<Content> globalQueryAllContent(Content param);
    List<Content> queryCascadeAll(Content content);
    Content queryOne(String id);
    int top(String id,String type);
    int nice(String id,String type);
    int unNew(List<String> list);
    Map<String,Content> turnPages(String id,String columnId);
    List<Map<String,Object>> statistics(String yearAndMonth);
    List<Map<String,Object>> queryCascadeContentGroupByColumnId(String id);
    List<Map<String,Object>> queryGroupByOrg(String id);
    int queryThumbs(String ip,String id);
    void addThumbs(String ip,String id);

    List<Map<String,Object>> statistics1(String year);
    List<Map<String,Object>> statistics2(String year);
    List<Map<String,Object>> statistics3(String year);
    List<Map<String,Object>> statistics5(String year);
    List<Map<String,Object>> mainBanner();
    List<String>  getApprovalAuthByOrgId(String orgId);
    void  saveApprovalAuthByOrgId(String orgId,List<String> columnIdList);

    /**
     * 查看转移的审核新闻
     * @param content
     * @return
     */
    List<Content> queryTransferApprovalPage(Content content);

    /**
     * 按照机构查询新闻信息
     * @param content
     * @return
     */
    List<Content> queryListByOrg(Content content);
}